﻿<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="ComboBoxTest.aspx.cs" Inherits="ComboBoxTest" %>
<%@ Register TagPrefix="opgeek" Namespace="OpinionatedGeek.Web.PowerPack" Assembly="OpinionatedGeek.Web.PowerPack"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    	<opgeek:ComboBox id="cbDemoCombo" runat="server" midtext="<br>or<br>" 
            AutoPostBack="True" onselectedindexchanged="cbDemoCombo_SelectedIndexChanged">
			<asp:listitem Text="Homer" />
			<asp:listitem Text="Marge" />
			<asp:listitem Text="Bart" />
			<asp:listitem Text="Lisa" />
			<asp:listitem Text="Maggie" />
		</opgeek:ComboBox>
    
        <br />
    
        <br />
        <b>Selected or writtent text </b>:
        <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
    
        <br />
        ------------------------------------------------------------------<br />
        NB: <br />
        <i>1.AutoPost back enabled.when u used as dropdown<br />
           2.Press enter when you write something on comboBox</i></div>
    </form>
</body>
</html>
